<%@page import="com.lsh.common.util.PageSurport"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
			PageSurport page2 = (PageSurport)request.getAttribute("page");
%>

	<div class="pageList">
		<span class="selPage">每页显示<select name="pageSize1"
			onchange="gotoPageChangePageSize(this.value)">
				<option value="2" <% if(page2.getPageSize()==2){out.print("selected");}%>>2</option>
				<option value="10" <% if(page2.getPageSize()==10){out.print("selected");}%>>10</option>
				<option value="20" <% if(page2.getPageSize()==20){out.print("selected");}%>>20</option>
				<option value="50" <% if(page2.getPageSize()==50){out.print("selected");}%>>50</option>
				<option value="100" <% if(page2.getPageSize()==100){out.print("selected");}%>>100</option>
		</select>条
		</span> <span class="page-total">共${page.recordCount}条
			当前${page.pageNo}/${page.pageCount}</span> 
			<a href="javascript:gotoPage(1);"class="page-first">首页</a> 
			<a title="上一页" href="javascript:gotoPage(${page.pageNo-1});">上一页</a>
					
			<%--
			<% 
				if(page2.getPageNo()>=3){  %>
					 <span class="page-current">1</span> 
					<a title="跳到第${page.pageNo-2}页" href="javascript:gotoPage(${page.pageNo-2});">${page.pageNo-2}</a>
					<a title="跳到第${page.pageNo-1}页" href="javascript:gotoPage(${page.pageNo-1});">${page.pageNo-1}</a>
					<a title="跳到第${page.pageNo}页"  class="page-current" href="javascript:gotoPage(${page.pageNo});">${page.pageNo}</a> 
					<a title="跳到第${page.pageNo+1}页" href="javascript:gotoPage(${page.pageNo+1});">${page.pageNo+1}</a>
					<a title="跳到第${page.pageNo+2}页" 	href="javascript:gotoPage(${page.pageNo+2});">${page.pageNo+2}</a> 
				<% 	}
				else{
				
				
				}
			 %>
			--%>
			<a
			href="javascript:gotoPage(${page.pageNo+1 });" class="page-next">下一页</a> <a
			href="javascript:gotoPage(${page.pageCount});" class="page-last">末页</a> <span
			class="pageOp"> <label for="pageNo">&nbsp;跳至 <select
				name="pageNo1" onchange="gotoPage(this.value)">
					<%-- <c:forEach var="i" begin="1" end="${page.pageCount}">
					<s:iterator var="i" id="i" begin="1" end="${page.pageCount}">
						<option value="${i}" <s:if test="#id.equals(1)"> dd</s:if>>${i}</option>
					</s:iterator>
					</c:forEach> --%>
					<s:iterator value="new int[page.pageCount]" status="i">
						<option value="${i.index+1}" <s:if test="(#i.index+1).equals(page.pageNo)">selected</s:if>>
							<s:property value="#i.index+1"/>
						</option>
					</s:iterator>
			</select>页
		</label>
		</span>
	</div>
